﻿using System;
using System.Configuration;

/// <summary>
/// ConfigPropertyCollection 的摘要说明
/// </summary>
[ConfigurationCollection(typeof(ConfigProperty), AddItemName = "myConfigProperty", CollectionType = ConfigurationElementCollectionType.BasicMap)]
public class ConfigPropertyCollection : ConfigurationElementCollection
{
	protected override ConfigurationElement CreateNewElement()
	{
		return new ConfigProperty();
	}

	protected override object GetElementKey(ConfigurationElement element)
	{
		return ((ConfigProperty)element).PropKey;
	}
}
